<extend name="base"/>

<block name="content">
<div class="classset-nav"> 
         <ul class="nav nav-tabs">
            <li>
              <a href="{:U('course')}">年级课程</a>
            </li>
            <li >
              <a href="{:U('coursecontent')}">课程内容</a>
            </li>
            <li class="active">
              <a href="{:U('addcoursecontent')}">编辑内容</a> 
            </li>
          </ul>
           
             <legend>编辑内容 [{$id} - {$acontent.title}]</legend> 
                <div class="row">
                <form class="form-horizontal" role="form" method="post" id="courseform" name="courseform">
                  <div class="form-group">
                  <label for="title" class="col-xs-1 control-label">标题</label>
                  <div class="col-xs-3">
                  <input name="title" id="title" value="{$acontent.title}" />
                  <input type="hidden" name="id" id="id" value="{$acontent.id}"/>
                  </div>
                  <label for="sort" class="col-xs-1 control-label">排序</label>
                  <div class="col-xs-2">
                  <input name="sort" id="sort" value="{$acontent.sort}" style="width:60px;" />                  
                  
                  </div>
                        <div class="col-xs-4 pull-right">{$acontent.create_time|date="Y-m-d",###}
                        <a href="" class="btn btn-primary ">删除</a>｜<input id="submit" class="btn btn-primary" value="保存"  type="submit" >
                        </div>
                  </div>

                      <div class="form-group">
                            <label for="content" class="col-xs-1 control-label">内容</label>

                            <div class="col-xs-11">
                                <php>
                                    $config="toolbars:[['source','|','bold','italic','underline','fontsize','forecolor','fontfamily','backcolor','|','link','emotion','scrawl','attachment','insertvideo','insertimage','insertcode']]";
                                </php>
                               
                                {:W('Common/Ueditor/editor',array('myeditor_edit','content',$acontent['content'],'600px','350px',$config))}
                            </div>
                        </div>

                         <div class="form-group">
                            <div class="col-sm-offset-1 col-xs-2">
                                <button type="submit" class="btn btn-primary " href="{:U('coursecontent')}">提交
                                </button>
                            </div>
                            <div class="col-xs-8">
                                <button onclick="history.go(-1);" class="btn btn-default " href="{:U('coursecontent')}">返回
                                </button>
                            </div>
                        </div>

                  </form>
                </div>
       </div>
   </block>  


